package com.gp.testonline.dao;

import com.gp.testonline.eo.QuestioninfoEOPage;
import com.gp.testonline.model.Questioninfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/*
 *操作数据库方法的对接
 */
@Mapper
public interface QuestioninfoMapper {
    //添加试题
    int insertQuestionInfo(Questioninfo questioninfo);
    //通过试题内容获取数量
    int getQuestioninfoCount(String qicontent);
    //通过主键更新试题
    int updateQuestioninfo(Questioninfo questioninfo);
    //通过主键删除试题
    int deleteQuestioninfo(Integer qiid);
    //根据条件获取相关信息
    List<QuestioninfoEOPage> getQuestioninfoAll(QuestioninfoEOPage questioninfoEOPage);
}
